import App from './App'
import uviewPlus from '@/uni_modules/uview-plus'

import request from '@/utils/request.js'
import api from '@/utils/api.js'

import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  app.config.globalProperties.$req = request
  app.config.globalProperties.$api = api
  app.use(uviewPlus)
  return {
    app
  }
}